﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace MovieRental.XmlDataProviderCore
{
    [DataContract]
    internal class XmlEntityInfo
    {
        [DataMember]
        internal string TableName { private set; get; }

        [DataMember]
        internal string PrimaryKeyAttributeName { private set; get; }

        internal XmlEntityInfo(string tableName, string keyName)
        {
            TableName = tableName;
            PrimaryKeyAttributeName = keyName;
        }

        public XmlEntityInfo Clone()
        {
            return new XmlEntityInfo(String.Copy(TableName), String.Copy(PrimaryKeyAttributeName));
        }
    }
}
